<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>新增事务</title>
</head>
<body>
<?php
echo form_open('/note/addnote');

echo form_label('名称','username');
$udata = array('name'=>'title','id'=>'title','size'=>'25');
echo form_input($udata);
echo "<br/>";

echo form_label('地址','address');
$pdata = array('name'=>'address','id'=>'address','size'=>'25');
echo form_input($pdata);
echo "<br/>";

echo form_label('说明','content');
echo "<br/>";
$ndata = array('name'=>'content','id'=>'content','cols'=>'40','rows'=>'5');
echo form_textarea($ndata);
echo "<br/>";

$authorid = $this->session->userdata('userid');
echo form_hidden('author',$authorid);

echo form_label('状态','process');
$process_option = array(
''=>'choice',
'0'=>'已经上线',
'1'=>'正在开发',
'2'=>'等待开发',
'3'=>'暂不开发',
);
echo form_dropdown('process',$process_option);

echo form_submit('submit','新增');
echo form_submit('reset','重置');

echo form_close();
?>
</body>
</html>